import express from 'express';

const app = express();
const port = 8082;
app.use(express.json());
app.get('/test', (req, res) => {
    res.send({
        code: 0,
        data: { aa: "aa" }
    })
});
app.post('/test', (req, res) => {
    console.log('params:', req.body);
    res.send({
        code: 0,
        data: { aa: "aa" }
    })
});
app.listen(port, () => {
    console.log(`Example app listening on port ${port}`);
});